package com.atguigu.spring5.dao;

import com.atguigu.spring5.entity.Book;

import java.util.List;

/**
 * @author : wenchao.long
 * @date : Created in 2020/10/30 8:48 周五
 * @description :
 */
public interface IBookDao {
    void insert(Book book);

    void update(Book book);

    void delete(Long id);

    int count();

    Book getById(Long id);

    List<Book> list();

    void saveBatch(List<Book> books);

    void updateBatch(List<Book> books);

    void deleteBatch(List<Long> ids);
}
